<?php
namespace Admin\Controller;
use Think\Controller;
class IntegralController extends AdminController
{
    public function user()
    {
        $id = I('get.id',0,'int');
//        dump($id);
        $res = M('integraldetail')->alias("ind")->join("shopping_integral as ing on ing.integral_id=ind.integral_id")->where("ing.user_id='$id'")->select();
        $this->assign('res',$res);
        $this->display('Integral/user');
    }
}